f = open('hello_io.py', 'rb', True)
try:
	print(f.closed)
	print(f.name)
	print(f.mode)

	while True:
		ch = f.readline()
		if not ch:
			break
		print(ch.decode('utf-8'))

finally:
	f.close()

import codecs

try:
	f = codecs.open('hello_path.py', 'r', 'utf-8', buffering=True)
	while True:
		ch = f.readline()
		if not ch:
			break
		print(ch)
finally:
	f.close()


# import sys
# for line in sys.stdin:
# 	print(line)
